<template>
    <div>
        <span @click="back">〈</span>
        <input type="text">

    </div>
    <button type="submit">搜索</button>
</template>

<script>
    export default {
        name: "SearchHeaderCom",
        methods:{
            back(){
                this.$router.go(-1)
            }
        }
    }
</script>

<style scoped>
    div{
        width: 100vw;
        height: 40px;
        background: #f5f5f5;
        display: flex;
    }
    span{
        width: 40px;
        height: 40px;
        text-align: center;
        line-height:40px;
    }
    input{
        flex: 1;
        border: 0;
        margin-top: 5px;
        margin-right: 10px;
        border-radius: 15px;
        height: 30px;
        outline: none;
    }
    button{
        height: 25px;
        width: 50px;
        background: #ffd000;
        position: absolute;
        top: 8px;
        right: 13px;
        border-radius: 12.5px;
        border: 0;

    }
</style>